package main

import (
	"errors"
	"go.uber.org/zap"
	"superTools-backend/pkg/logging"
	"time"
)

/**
* @Author: super
* @Date: 2020-08-21 20:37
* @Description:
**/

func main() {
	logger := logging.GetLogger()
	logger.Info("failed to fetch URL",
		zap.String("url", "https://www.liuvv.com"),
		zap.Int("attempt", 3),
		zap.Duration("backoff", time.Second),
	)
	logger.Error("failed to fetch URL",
		zap.Error(errors.New("new error")),
	)
}